package procsim;

public class PaintPSW2 extends PaintTab{
    public PaintPSW2(Paint parent){
        super(parent);
        // Coordinates
        Design.ldFLAGS.addCoords(this, Design.PSW2And1.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And3.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And5.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And7.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And9.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And11.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And13.getUpper2Coords(48));
        Design.ldFLAGS.addCoords(this, Design.PSW2And15.getUpper2Coords(48));

        Design.PSWin.addCoords(this, Design.PSW2And2.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And4.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And6.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And8.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And10.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And12.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And14.getUpper2Coords(48));
        Design.PSWin.addCoords(this, Design.PSW2And16.getUpper2Coords(48));

        Design.MDR0.addCoords(this, Design.PSW2And2.getLower2Coords(48));
        Design.MDR0.addCoords(this, Design.PSW2And6.getLower2CoordsInv(48));

        Design.MDR1.addCoords(this, Design.PSW2And10.getLower2Coords(48));
        Design.MDR1.addCoords(this, Design.PSW2And14.getLower2CoordsInv(48));

        Design.MDR2.addCoords(this, Design.PSW2And4.getLower2Coords(48));
        Design.MDR2.addCoords(this, Design.PSW2And8.getLower2CoordsInv(48));

        Design.MDR3.addCoords(this, Design.PSW2And12.getLower2Coords(48));
        Design.MDR3.addCoords(this, Design.PSW2And16.getLower2CoordsInv(48));

        Design.aluN.addCoords(this, Design.PSW2And1.getLower2Coords(48));
        Design.aluN.addCoords(this, Design.PSW2And5.getLower2CoordsInv(48));

        Design.aluZ.addCoords(this, Design.PSW2And9.getLower2Coords(48));
        Design.aluZ.addCoords(this, Design.PSW2And13.getLower2CoordsInv(48));

        Design.aluC.addCoords(this, Design.PSW2And3.getLower2Coords(48));
        Design.aluC.addCoords(this, Design.PSW2And7.getLower2CoordsInv(48));

        Design.aluV.addCoords(this, Design.PSW2And11.getLower2Coords(48));
        Design.aluV.addCoords(this, Design.PSW2And15.getLower2CoordsInv(48));

        Design.PSWN.addCoords(this, Design.PSW2RS1.getQCoords(45));
        Design.PSWZ.addCoords(this, Design.PSW2RS3.getQCoords(45));
        Design.PSWC.addCoords(this, Design.PSW2RS2.getQCoords(45));
        Design.PSWV.addCoords(this, Design.PSW2RS4.getQCoords(45));

        Design.BNZ.addCoords(this, Design.PSW2CondAnd.getUpper2Coords(48));
        Design.PSWZ.addCoords(this, Design.PSW2CondAnd.getLower2CoordsInv(48));
        Design.cond.addCoords(this, Design.PSW2CondAnd.getResCoords(35));
        //Levo
        Design.PSW2And1Result.addCoords(this, Design.PSW2And1.getResCoords(120));
        Design.PSW2And1Result.addCoords(this, 210, 82, 210, 70);
        Design.PSW2And1Result.addCoords(this, Design.PSW2Or1.getLower2Coords(10));
        
        Design.PSW2And2Result.addCoords(this, Design.PSW2And2.getResCoords(33));

        Design.PSW2Or1Result.addCoords(this, Design.PSW2Or1.getResCoords(43));
        //
        Design.PSW2And5Result.addCoords(this, Design.PSW2And5.getResCoords(120));
        Design.PSW2And5Result.addCoords(this, 210, 177, 210, 165);
        Design.PSW2And5Result.addCoords(this, Design.PSW2Or3.getLower2Coords(10));

        Design.PSW2And6Result.addCoords(this, Design.PSW2And6.getResCoords(33));

        Design.PSW2Or3Result.addCoords(this, Design.PSW2Or3.getResCoords(33));
        Design.PSW2Or3Result.addCoords(this, 280, 157, 280, 113);
        Design.PSW2Or3Result.addCoords(this, Design.PSW2RS1.getRCoords(10));
        //
        Design.PSW2And9Result.addCoords(this, Design.PSW2And9.getResCoords(120));
        Design.PSW2And9Result.addCoords(this, 210, 262, 210, 250);
        Design.PSW2And9Result.addCoords(this, Design.PSW2Or5.getLower2Coords(10));

        Design.PSW2And10Result.addCoords(this, Design.PSW2And10.getResCoords(33));

        Design.PSW2Or5Result.addCoords(this, Design.PSW2Or5.getResCoords(43));
        //
        Design.PSW2And13Result.addCoords(this, Design.PSW2And13.getResCoords(120));
        Design.PSW2And13Result.addCoords(this, 210, 357, 210, 345);
        Design.PSW2And13Result.addCoords(this, Design.PSW2Or7.getLower2Coords(10));

        Design.PSW2And14Result.addCoords(this, Design.PSW2And14.getResCoords(33));

        Design.PSW2Or7Result.addCoords(this, Design.PSW2Or7.getResCoords(33));
        Design.PSW2Or7Result.addCoords(this, 280, 337, 280, 293);
        Design.PSW2Or7Result.addCoords(this, Design.PSW2RS3.getRCoords(10));
        //Desno
        Design.PSW2And3Result.addCoords(this, Design.PSW2And3.getResCoords(120));
        Design.PSW2And3Result.addCoords(this, 620, 82, 620, 70);
        Design.PSW2And3Result.addCoords(this, Design.PSW2Or2.getLower2Coords(10));

        Design.PSW2And4Result.addCoords(this, Design.PSW2And4.getResCoords(33));

        Design.PSW2Or2Result.addCoords(this, Design.PSW2Or2.getResCoords(43));
        //
        Design.PSW2And7Result.addCoords(this, Design.PSW2And7.getResCoords(120));
        Design.PSW2And7Result.addCoords(this, 620, 177, 620, 165);
        Design.PSW2And7Result.addCoords(this, Design.PSW2Or4.getLower2Coords(10));

        Design.PSW2And8Result.addCoords(this, Design.PSW2And8.getResCoords(33));

        Design.PSW2Or4Result.addCoords(this, Design.PSW2Or4.getResCoords(33));
        Design.PSW2Or4Result.addCoords(this, 690, 157, 690, 113);
        Design.PSW2Or4Result.addCoords(this, Design.PSW2RS2.getRCoords(10));

        Design.PSW2And11Result.addCoords(this, Design.PSW2And11.getResCoords(120));
        Design.PSW2And11Result.addCoords(this, 620, 262, 620, 250);
        Design.PSW2And11Result.addCoords(this, Design.PSW2Or6.getLower2Coords(10));

        Design.PSW2And12Result.addCoords(this, Design.PSW2And12.getResCoords(33));

        Design.PSW2Or6Result.addCoords(this, Design.PSW2Or6.getResCoords(43));
        //
        Design.PSW2And15Result.addCoords(this, Design.PSW2And15.getResCoords(120));
        Design.PSW2And15Result.addCoords(this, 620, 357, 620, 345);
        Design.PSW2And15Result.addCoords(this, Design.PSW2Or8.getLower2Coords(10));

        Design.PSW2And16Result.addCoords(this, Design.PSW2And16.getResCoords(33));

        Design.PSW2Or8Result.addCoords(this, Design.PSW2Or8.getResCoords(33));
        Design.PSW2Or8Result.addCoords(this, 690, 337, 690, 293);
        Design.PSW2Or8Result.addCoords(this, Design.PSW2RS4.getRCoords(10));
        
        //Collections
        elements.add(Design.PSW2And1);
        elements.add(Design.PSW2And2);
        elements.add(Design.PSW2And3);
        elements.add(Design.PSW2And4);
        elements.add(Design.PSW2And5);
        elements.add(Design.PSW2And6);
        elements.add(Design.PSW2And7);
        elements.add(Design.PSW2And8);
        elements.add(Design.PSW2And9);
        elements.add(Design.PSW2And10);
        elements.add(Design.PSW2And11);
        elements.add(Design.PSW2And12);
        elements.add(Design.PSW2And13);
        elements.add(Design.PSW2And14);
        elements.add(Design.PSW2And15);
        elements.add(Design.PSW2And16);
        elements.add(Design.PSW2CondAnd);
        elements.add(Design.PSW2Or1);
        elements.add(Design.PSW2Or2);
        elements.add(Design.PSW2Or3);
        elements.add(Design.PSW2Or4);
        elements.add(Design.PSW2Or5);
        elements.add(Design.PSW2Or6);
        elements.add(Design.PSW2Or7);
        elements.add(Design.PSW2Or8);
        elements.add(Design.PSW2RS1);
        elements.add(Design.PSW2RS2);
        elements.add(Design.PSW2RS3);
        elements.add(Design.PSW2RS4);
        elements.add(Design.PSW2Inv1);
        elements.add(Design.PSW2Inv2);
        elements.add(Design.PSW2Inv3);
        elements.add(Design.PSW2Inv4);
        elements.add(Design.PSW2Inv5);
        elements.add(Design.PSW2Inv6);
        elements.add(Design.PSW2Inv7);
        elements.add(Design.PSW2Inv8);
        elements.add(Design.PSW2CondInv);

        lines.add(Design.ldFLAGS);
        lines.add(Design.aluN);
        lines.add(Design.aluZ);
        lines.add(Design.aluV);
        lines.add(Design.aluC);
        lines.add(Design.MDR0);
        lines.add(Design.MDR1);
        lines.add(Design.MDR2);
        lines.add(Design.MDR3);
        lines.add(Design.PSWN);
        lines.add(Design.PSWZ);
        lines.add(Design.PSWC);
        lines.add(Design.PSWV);
        lines.add(Design.PSWin);
        lines.add(Design.BNZ);
        lines.add(Design.cond);
        lines.add(Design.PSW2And1Result);
        lines.add(Design.PSW2And2Result);
        lines.add(Design.PSW2And3Result);
        lines.add(Design.PSW2And4Result);
        lines.add(Design.PSW2And5Result);
        lines.add(Design.PSW2And6Result);
        lines.add(Design.PSW2And7Result);
        lines.add(Design.PSW2And8Result);
        lines.add(Design.PSW2And9Result);
        lines.add(Design.PSW2And10Result);
        lines.add(Design.PSW2And11Result);
        lines.add(Design.PSW2And12Result);
        lines.add(Design.PSW2And13Result);
        lines.add(Design.PSW2And14Result);
        lines.add(Design.PSW2And15Result);
        lines.add(Design.PSW2And16Result);
        lines.add(Design.PSW2Or1Result);
        lines.add(Design.PSW2Or2Result);
        lines.add(Design.PSW2Or3Result);
        lines.add(Design.PSW2Or4Result);
        lines.add(Design.PSW2Or5Result);
        lines.add(Design.PSW2Or6Result);
        lines.add(Design.PSW2Or7Result);
        lines.add(Design.PSW2Or8Result);
    }
}
